package ywpt.service.knowledge;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.KnowLib;

public interface KnowLibService {

	public abstract KnowLib getKnowLibById(Long id);

	public abstract int getKnowLibCountByCriteria(DetachedCriteria query);

	public abstract List<KnowLib> getKnowLibs(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract void saveKnowLib(KnowLib knowLib, Long checkerId);

	public abstract void updatKnowLib(KnowLib knowLib, Long checkerId);

	public abstract void removeKnowLib(Long id);

	public abstract List<KnowLib> getKnowLibs(DetachedCriteria query);

}
